colculate electricity bill using java